package list;

import book.Book;
import book.BookRack;

public class ShowBook implements IUSB{
    @Override
    public void work(BookRack bookRack) {
        System.out.println("显示图书");
        int currentSize = bookRack.getUsesize();
        for (int i = 0; i < currentSize; i++) {
           Book book = bookRack.getBook(i);
            System.out.println(book);
        }
    }
}
